/* eslint-disable no-unused-vars */
import { request, RestfulApi, paramsFilter } from "@/utils/help";

export const Sysdepts = new RestfulApi("depts");
Sysdepts.list = data => request("depts/list", paramsFilter(data), "post");
Sysdepts.add = data => request("depts/add", paramsFilter(data), "post");
Sysdepts.status = data => request("depts/status", paramsFilter(data), "post");
Sysdepts.update = data => request("depts/update", paramsFilter(data), "post");
Sysdepts.detail = data => request("depts/detail", paramsFilter(data), "get");
Sysdepts.tree = data => request("depts/types", paramsFilter(data), "get");
Sysdepts.types = data => request("depts/types", paramsFilter(data), "get");